package cn.opopopo.design_pattern_learn.行为型.state;

// 关灯状态
class OffState implements LightState {
    @Override
    public void pressSwitch(LightContext context) {
        System.out.println("灯亮了（弱光）");
        context.setState(new LowState()); // 切换到弱光
    }
}